using System;
using ctsu.BaseForms;

namespace ctsu.Admin.BusLogic
{
	public class SearchResultsControllerImpl : ISearchResultsController
	{
		private IBLSearchResultsBase _bl;

		public IBLSearchResultsBase BusinessLogic
		{
			get { return _bl; }
			set { _bl = value; }
		}
		public SearchResultsControllerImpl(IBLSearchResultsBase bl)
		{
			this._bl = bl;
		}
		#region ISearchResultsController Members

		public void GenericAction(object sender, EventArgs e)
		{
			_bl.GenericAction(sender, e);
		}

		#endregion

		#region IFormClose Members

		public void Closed(object sender, EventArgs e)
		{
			_bl.Closed(sender, e);
		}

		public void Cancel(object sender, EventArgs e)
		{
			_bl.Cancel(sender, e);
		}

		public void Accept(object sender, EventArgs e)
		{
			_bl.Accept(sender, e);
		}

		public void Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			_bl.Closing(sender, e);
			e.Cancel = _bl.CancelClosing;
		}

		public void Exit(object sender, EventArgs e)
		{
			_bl.Exit(sender, e);
		}

		#endregion
	}
}
